package com.app.mingluxing.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * 保存到sp中的聊天json串集合
 * Created by Aaron on 16/3/17.
 */
public class SaveMsgBean implements Parcelable {

    public List<MessageBean> msg;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(msg);
    }

    public SaveMsgBean() {
    }

    protected SaveMsgBean(Parcel in) {
        this.msg = in.createTypedArrayList(MessageBean.CREATOR);
    }

    public static final Creator<SaveMsgBean> CREATOR = new Creator<SaveMsgBean>() {
        public SaveMsgBean createFromParcel(Parcel source) {
            return new SaveMsgBean(source);
        }

        public SaveMsgBean[] newArray(int size) {
            return new SaveMsgBean[size];
        }
    };
}
